{include file="header.html"}
<body class="gr">

<div class="navBar">
	<a class="left" href="javascript:history.go(-1)"><i class="return"></i></a>
	<div class="titleView-x">物流情况</div>
</div>

<div class="member-order-express main-top">
	<div class="info ge-bottom">
		<div class="view">
			<div {if is_array($data->goods)}style="background-image:url({$data->goods[0]->goods_pic});"{/if}></div>
			<span>物流公司：{$data->shipping_company}</span>
			<span>快递单号：{$data->shipping_number}</span>
			<span>官方电话：<font>{if isset($data->shipping_tel)}{$data->shipping_tel}{else}-{/if}</font></span>
		</div>
	</div>
	
	{if !is_null($data->express) && isset($data->express.data) && is_array($data->express.data)}
	<div class="express ge-top">
		<div class="title ge-bottom ge-light">物流跟踪</div>
		<ul>
			{foreach from=$data->express.data name=foo item=g}
			<li>
				<div class="view ge-bottom ge-light {if $smarty.foreach.foo.first}first{/if}{if $smarty.foreach.foo.last}last{/if}">
					<div class="nav"><span class="ge-right"></span><div></div></div>
					<div class="context">{$g.context}</div>
					<div class="time">{$g.time}</div>
				</div>
			</li>
			{/foreach}
			<div class="clear"></div>
		</ul>
	</div>
	{else}
	<div class="no-record">暂时没有物流信息</div>
	{/if}
</div>

{include file="footer.html"}
<script>
$(function(){
	setTimeout(function(){
		$('.express .view').each(function(){
			var view = $(this), height = view.find('.context').outerHeight(false)+view.find('.time').outerHeight(false), span = view.find('.nav span');
			view.css('height', height);
			if(view.hasClass('first')){
				var div = view.find('.nav div'), top = Number(div.css('top').replace(/px/, '')) + div.height()/2;
				span.css({ top:top.rem(), height:(height-top).rem() });
			}else if(view.hasClass('last')){
				var div = view.find('.nav div'), top = Number(div.css('top').replace(/px/, '')) + div.height()/2;
				span.css({ height:top.rem() });
			}
		});
	}, 100);
});
</script>